﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MyTime.Gui.Controls
{
    public partial class WeekGrid : UserControl
    {
        public WeekGrid(string title)
        {
            InitializeComponent();
            weekGroupBox.Text = title;
        }

        public WeekGrid(List<DataGrid> grids)
        {
            foreach (DataGrid grid in grids)
            {
                flowGrid.Controls.Add(grid);
            }
            InitializeComponent();
        }
        public void Append(DataGrid grid)
        {
            flowGrid.Controls.Add(grid);
        }
    }
}
